package fileDemo;

import java.io.File;

public class Demo6 {
    public static void main(String[] args) {
        File file1=new File("D:\\Project\\java\\java-biog\\" +
                "Day20250312\\IO.txt");
        System.out.println(file1.renameTo(new File("D:\\Project\\java\\java-biog\\" +
                "Day20250312\\IO测试文件.txt")));
    }
}
